.settings-card {
  margin-bottom: 24px;
  
  .ant-form-item {
    margin-bottom: 24px;
  }
  
  .setting-description {
    margin-left: 8px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 13px;
  }
  
  // 颜色选择块
  .color-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    
    .color-block {
      width: 40px;
      height: 40px;
      border-radius: 4px;
      cursor: pointer;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
      
      &:hover {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      }
      
      &.active {
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1890ff;
      }
      
      .checkmark {
        color: #fff;
        font-weight: bold;
        font-size: 16px;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
      }
    }
  }
}

// 预览卡片
.settings-preview-card {
  .preview-container {
    height: 400px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    
    .preview-layout {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      
      &.top {
        .preview-content {
          flex-direction: column;
        }
      }
      
      &.side, &.mix {
        .preview-content {
          flex-direction: row;
        }
      }
      
      .preview-header {
        height: 48px;
        display: flex;
        align-items: center;
        padding: 0 16px;
        border-bottom: 1px solid #f0f0f0;
        
        &.fixed {
          position: sticky;
          top: 0;
          z-index: 10;
        }
        
        .preview-logo {
          width: 30px;
          height: 30px;
          border-radius: 4px;
          margin-right: 12px;
        }
        
        .preview-menu.horizontal {
          flex: 1;
          height: 20px;
          background-color: #f0f2f5;
          border-radius: 4px;
        }
      }
      
      .preview-content {
        flex: 1;
        display: flex;
        overflow: hidden;
        
        .preview-sidebar {
          width: 60px;
          border-right: 1px solid #f0f0f0;
          display: flex;
          flex-direction: column;
          
          &.fixed {
            position: sticky;
            left: 0;
            height: 100%;
          }
          
          .preview-logo {
            height: 30px;
            margin: 10px;
            border-radius: 4px;
          }
          
          .preview-menu.vertical {
            flex: 1;
            margin: 10px;
            background-color: #f0f2f5;
            border-radius: 4px;
          }
        }
        
        .preview-main {
          flex: 1;
          padding: 12px;
          display: flex;
          flex-direction: column;
          overflow: auto;
          
          .preview-breadcrumb {
            height: 20px;
            margin-bottom: 12px;
            background-color: #f0f2f5;
            border-radius: 4px;
          }
          
          .preview-tags {
            height: 30px;
            margin-bottom: 12px;
            background-color: #f0f2f5;
            border-radius: 4px;
          }
          
          .preview-page {
            flex: 1;
            background-color: #f0f2f5;
            border-radius: 4px;
          }
          
          .preview-footer {
            height: 20px;
            margin-top: 12px;
            background-color: #f0f2f5;
            border-radius: 4px;
          }
        }
      }
    }
  }
}

// 主题切换组件样式
.theme-preview {
  padding: 16px;
  border-radius: 8px;
  transition: all 0.3s;
  text-align: center;
  
  &.light {
    background-color: #f0f2f5;
    color: rgba(0, 0, 0, 0.85);
  }
  
  &.dark {
    background-color: #141414;
    color: rgba(255, 255, 255, 0.85);
  }
}

// 暗色模式全局样式
:global(.dark-mode) {
  // 卡片样式调整
  .ant-card {
    background-color: #1f1f1f;
    border-color: #303030;
    
    .ant-card-head {
      border-bottom-color: #303030;
    }
  }
  
  // 文字颜色调整
  .ant-typography {
    color: rgba(255, 255, 255, 0.85);
  }
  
  // 次要文字颜色
  .ant-typography-secondary {
    color: rgba(255, 255, 255, 0.45);
  }
  
  // 分割线颜色
  .ant-divider {
    border-color: #303030;
  }
  
  // 设置描述文字
  .setting-description {
    color: rgba(255, 255, 255, 0.45);
  }
}